package com.e3.basdoc.tax.client;

import java.util.List;

import com.e3.basdoc.tax.model.TaxModel;
import com.e3.basdoc.tax.model.TaxQC;
import com.e3.web.core.client.RPCServiceHelper;
import com.e3.web.core.client.WebException;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;

public interface TaxRPCService extends RemoteService {
	public static class Util {

		private static TaxRPCServiceAsync instance;

		public static TaxRPCServiceAsync getInstance() {
			instance = (TaxRPCServiceAsync) RPCServiceHelper.getService(TaxRPCService.class.getName());
			if (instance == null) {
				instance = GWT.create(TaxRPCService.class);
				RPCServiceHelper.registerServiceEntryPoint(instance);
			}
			return instance;
		}

	}

	public TaxModel newTax(TaxModel model) throws WebException;
	
	public TaxModel modifyTax(TaxModel model) throws WebException;
	
	public List<TaxModel> getTaxByCondition(TaxQC qc) throws WebException;
	
	public void deleteTaxs(List<TaxModel> banks) throws WebException;

}
